package com.aia.prm.web.ria.app.ui.formdata;

import java.io.Serializable;
import java.util.HashMap;
import java.util.Map;

import com.aia.aia2.domain.Formdata;
import com.vaadin.data.util.BeanItemContainer;

@SuppressWarnings("serial")
public class FormdataContainer extends BeanItemContainer<Formdata> implements Serializable {
	public static final Object[] NATURAL_COL_ORDER = new Object[] { "GI_ID", "FD_FREEFLAG1", "FD_COUNT", "FD_PLAN", "FD_RESULT", "FD_IP",
			"FD_NAME", "FD_COMPANY", "FD_PROVINCE", "FD_CITY", "FD_DISTRICT", "FD_UNICA_FLAG", "FD_UNICA_CODE", "FD_UNICA_REMARK",
			"FD_DATE", "FD_TIME" };

	public static final String[] COL_HEADERS_SHOW = new String[] { "产品ID", "要求营销员联系", "总人数", "计划", "保费", "IP地址", "姓名", "公司名称", "公司省",
			"公司市", "公司区", "发送成功?", "发送状态码", "发送状态描述", "日期 ", "时间" };

	public static final Object[] NATURAL_COL_ORDER_FORM = new Object[] { "FD_GUID", "GI_ID", "GI_SHORT", "GI_NAME", "FD_COUNT", "FD_PLAN",
			"FD_INPUT", "FD_INPUTDESC", "FD_RESULT", "FD_IP", "FD_NAME", "FD_SEX", "FD_COMPANY", "FD_SERVICE", "FD_PROVINCE", "FD_CITY",
			"FD_DISTRICT", "FD_PHONE", "FD_TEL", "FD_COMPANY_CODE", "FD_UNICA_FLAG", "FD_UNICA_CODE", "FD_UNICA_REMARK", "FD_DATE",
			"FD_TIME" };

	public static final Map<String, String> FIELD_NAME_MAP = new HashMap<String, String>();

	static {
		FIELD_NAME_MAP.put("FD_GUID", "记录ID");
		FIELD_NAME_MAP.put("FD_FREEFLAG1", "要求营销员联系");
		FIELD_NAME_MAP.put("GI_ID", "产品ID");
		FIELD_NAME_MAP.put("GI_SHORT", "短名");
		FIELD_NAME_MAP.put("GI_NAME", "全名");
		FIELD_NAME_MAP.put("FD_COUNT", "总人数");
		FIELD_NAME_MAP.put("FD_PLAN", "计划");
		FIELD_NAME_MAP.put("FD_INPUT", "输入数据");
		FIELD_NAME_MAP.put("FD_INPUTDESC", "解释");
		FIELD_NAME_MAP.put("FD_RESULT", "保费");
		FIELD_NAME_MAP.put("FD_IP", "IP地址");
		FIELD_NAME_MAP.put("FD_NAME", "姓名");
		FIELD_NAME_MAP.put("FD_SEX", "性别");
		FIELD_NAME_MAP.put("FD_COMPANY", "公司名称");
		FIELD_NAME_MAP.put("FD_SERVICE", "公司业务");
		FIELD_NAME_MAP.put("FD_PROVINCE", "公司省");
		FIELD_NAME_MAP.put("FD_CITY", "公司市");
		FIELD_NAME_MAP.put("FD_DISTRICT", "公司区");
		FIELD_NAME_MAP.put("FD_PHONE", "联系人手机");
		FIELD_NAME_MAP.put("FD_TEL", "公司电话");
		FIELD_NAME_MAP.put("FD_COMPANY_CODE", "机构代码");
		FIELD_NAME_MAP.put("FD_UNICA_FLAG", "发送接口成功");
		FIELD_NAME_MAP.put("FD_UNICA_CODE", "状态码");
		FIELD_NAME_MAP.put("FD_UNICA_REMARK", "失败原因");
		FIELD_NAME_MAP.put("FD_DATE", "日期 ");
		FIELD_NAME_MAP.put("FD_TIME", "时间");

	}

	public FormdataContainer() throws InstantiationException, IllegalAccessException {
		super(Formdata.class);
	}
}